package com.example.common.utils;

public class UserContext {
    private static  final ThreadLocal<String> tl = new ThreadLocal<String>();

    public static  void setUser(String username){
        tl.set(username);
    }
    public static String getUser(){
        return tl.get();
    }
    public static void removeUser(){tl.remove();}

}
